#pragma once
#include <iostream>

#define Die(code) \
    do             \
    {               \
        /* code */   \
        exit(code);   \
    } while (0);       \
    

#define CONV(v) (struct sockaddr* )(v)

enum 
{
    USAG_ERR = 1,
    SOCKET_ERR,
    BIN_ERR
};